package com.hcw.library.controller;

import com.hcw.library.common.Result;
import com.hcw.library.domain.Paper;
import com.hcw.library.service.impl.ApaperService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

public class ApaperController {
    private ApaperService apaperService;
    @PostMapping("/Paper/addPaper")
    @ResponseBody
    public Result<Integer> addPaper(@RequestBody Paper paper){
        return apaperService.addPaper(paper);
    }

}
